package com.zzq.service.blog;

import com.zzq.dao.blog.BlogMapper;
import com.zzq.pojo.Blog;

import java.util.List;

public class BlogServiceImpl implements BlogService{
    private BlogMapper blogMapper;

    public void setBlogMapper(BlogMapper blogMapper) {this.blogMapper = blogMapper;}

    public List<Blog> getAllBlog(){return blogMapper.getAllBlog();}

    public int addBlog(String blogName,String userName,String releaseTime){return blogMapper.addBlog(blogName,userName,releaseTime);};

    public List<Blog> getUserBlog(String userName){return blogMapper.getUserBlog(userName);}

}
